let defaultValue = {
    inputValue: 'aa',
    list: ['react']
}
export default (state = defaultValue,action) => {
    if(action.type === 'CHANGE_INPUT_VALUE') {
        const newState = JSON.parse(JSON.stringify(state));
        newState.inputValue = action.value;
        return newState;
    }
    return state;
}